//
//  MainWebController.m
//  project
//
//  Created by 张振宇 on 15/10/29.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import "MainWebController.h"

@interface MainWebController ()
@property (nonatomic, strong) UIWebView *mainWebView;
@end

@implementation MainWebController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.automaticallyAdjustsScrollViewInsets = NO;
    _mainWebView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 60, kWidth, kHeight-60)];
    [_mainWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:_url]]];
    [self.view addSubview:_mainWebView];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
